package com.vito.oa.email.service;

import java.util.List;

import com.vito.oa.email.model.ExternalContactsGroup;

public interface ExternalContactsGroupService {
	/**
	 * 根据userId查询通讯组	
	 * @param UserId
	 * @return
	 */
	public List<ExternalContactsGroup> getGroupByUserId(String userId);
	
	/**
	 * 创建联系人组
	 * @param group
	 * @return
	 */
	public boolean addContactsGroup(ExternalContactsGroup group);
	/**
	 * 修改组信息
	 * @param group
	 * @return
	 */
	public boolean updateContactsGroup(ExternalContactsGroup group);
	
	/**
	 * 通过组名查询
	 * @param group
	 * @return
	 */
	public ExternalContactsGroup getGroupByName(ExternalContactsGroup group);
	
	/**
	 * 左边联系人树
	 * @param userId
	 * @return
	 */
	public List<ExternalContactsGroup> getGroupTreeByUserId(String userId);
	
	/**
	 * 邮件联系人树
	 * @param userId
	 * @return
	 */
	public List<ExternalContactsGroup> getEmailContactsTree(String userId);
	

}
